<script setup lang="ts">
import { lightTheme, zhCN, dateZhCN } from 'naive-ui';
import hljs from 'highlight.js/lib/core';
import javascript from 'highlight.js/lib/languages/javascript';
import css from 'highlight.js/lib/languages/css';
import java from 'highlight.js/lib/languages/java';
import xml from 'highlight.js/lib/languages/xml';

hljs.registerLanguage('javascript', javascript);
hljs.registerLanguage('css', css);
hljs.registerLanguage('java', java);
hljs.registerLanguage('xml', xml);
</script>

<template>
  <Suspense>
    <NConfigProvider
        class="w-full h-full"
        :locales="zhCN"
        :date-locale="dateZhCN"
        :theme="lightTheme"
        :hljs="hljs"
    >
      <AppProvider>
        <RouterView class="bg-layout" />
      </AppProvider>
    </NConfigProvider>
  </Suspense>
</template>

<style scoped>
</style>
